<?php
$db['business_orders']=array (
    'columns' =>
    array (
		'childOrder_id'=>
        array (
            'type' => 'varchar(32)',
            'required' => true,
			'pkey' => true,
            'label' => app::get('b2c')->_('供应商订单号'),
            'width' => 150,
            'comment' => app::get('b2c')->_('子单订单号'),
			'filtertype' => 'yes',
			'filterdefault' => true,
            'in_list' => true,
            'default_in_list' => true,
        ),
        'mainOrder_id'=>
        array (
            'type' => 'varchar(32)',
            'required' => true,
            'label' => app::get('b2c')->_('订单号'),
            'width' => 150,
            'comment' => app::get('b2c')->_('主单订单号'),
			'filtertype' => 'yes',
			'filterdefault' => true,
            'in_list' => true,
            'default_in_list' => true,
        ),
        'business_id'=>
		array(
		'type' => 'table:business_basicmsg',
		'label' => app::get('b2c')->_('供应商名称'),
		'width' => 150,
		'comment' => app::get('b2c')->_('供应商id'),
        'filtertype' => 'yes',
        'filterdefault' => true,
        'in_list' => true,
        'default_in_list' => false,
		),
		'member_id'=>
		array(
		'type' => 'table:members',
		'label' => app::get('b2c')->_('会员id'),
		'width' => 150,
		'comment' => app::get('b2c')->_('会员id'),
		'in_list' => true,
		'default_in_list' => false,
		),
        'order_amount'=>
        array (
            'type' => 'money',
            'label' => app::get('b2c')->_('订单金额'),
            'width' => 110,
            'editable' => false,
            'in_list' => true,
            'default_in_list' => true,
        ),
		'order_num'=>
        array (
            'type' => 'int(10)',
            'label' => app::get('b2c')->_('商品数量'),
            'width' => 110,
            'editable' => false,
            'in_list' => true,
            'default_in_list' => true,
        ),
		'status' =>
		array (
			'type' =>
			array (
			0 => app::get('b2c')->_('未确认'),
			1 => app::get('b2c')->_('已确认'),
			2 => app::get('b2c')->_('部分确认'),
			),
			'default'=>'0',
			'required' => true,
			'editable' => false,
            'label' => app::get('b2c')->_('确认状态'),
			'comment' => app::get('b2c')->_('库存确认'),
            'in_list' => true,
            'default_in_list' => true,
		),
		'createtime' =>
			array (
			  'type' => 'time',
			  'label' => app::get('b2c')->_('创建时间'),
			  'width' => 110,
			  'editable' => false,
			  'in_list' => true,
			  'default_in_list' => true,
			  'orderby' => true,
			),

        'order_status' =>
        array (
          'type' =>
          array (
            'active' => app::get('b2c')->_('活动订单'),
            'dead' => app::get('b2c')->_('已作废'),
            'finish' => app::get('b2c')->_('已完成'),
          ),
          'default' => 'active',
          'required' => true,
          'label' => app::get('b2c')->_('订单状态'),
          'width' => 75,
          'hidden' => true,
          'editable' => false,
          'in_list' => true,
          'default_in_list' => true,
        ),
		),
	'index' =>
		array (
			'ind_business_id' =>
				array (
						'columns' =>
							array (
									0 => 'business_id',
							),
				),
				'ind_mainOrder_id' =>
						array (
								'columns' =>
										array (
												0 => 'mainOrder_id',
										),
						),
		),
  'version' => '$Rev: 40654 $',
  'comment' => app::get('b2c')->_('供应商订单表'),
);